package com.tuyou.springboot.mybatis;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement //开启申明式事务
@MapperScan("com.tuyou.springboot.mybatis.mapper")
@SpringBootApplication
public class MybatisApp {

    public static void main(String[] args) {

        SpringApplication.run(MybatisApp.class, args);
    }
}
